function insert(item, user, request) {

    //Add two fields to the record submitted
    var d = new Date();
    item.complete = false;
    item._DateTime = d.toUTCString();

    //Normalise sensor name
    var sensor = item.sensor;
    var ch = sensor.charAt(0).toUpperCase();
    sensor = sensor.toLowerCase();
    sensor = sensor.substr(1, sensor.length - 1)
    item.sensor = ch + sensor;


    //Normal script
    request.execute();
}